package com.example.lexiangbackend.dto;

import jakarta.validation.constraints.NotBlank;

public class LoginRequest {
    
    @NotBlank(message = "邮箱或用户名不能为空")
    private String emailOrUsername;
    
    @NotBlank(message = "密码不能为空")
    private String password;
    
    private boolean rememberMe = false;

    // 构造函数
    public LoginRequest() {}

    public LoginRequest(String emailOrUsername, String password, boolean rememberMe) {
        this.emailOrUsername = emailOrUsername;
        this.password = password;
        this.rememberMe = rememberMe;
    }

    // Getters and Setters
    public String getEmailOrUsername() {
        return emailOrUsername;
    }

    public void setEmailOrUsername(String emailOrUsername) {
        this.emailOrUsername = emailOrUsername;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isRememberMe() {
        return rememberMe;
    }

    public void setRememberMe(boolean rememberMe) {
        this.rememberMe = rememberMe;
    }
} 